package com.kuangstudy.exception;

/**
 * ClassName: MyException
 * date: 2021/07/16 23:26:42
 *
 * @author zlk
 */
public class MyException extends Exception{
    /*传递数字大于10*/
    private int detail;

    public MyException(int detail) {
        this.detail = detail;
    }

    /*异常的打印信息*/
    @Override
    public String toString() {
        return "MyException{" +
                "detail=" + detail +
                '}';
    }
}
